package org.lib.data.user.api.feign;

import org.lib.data.user.api.constant.AppConstant;
import org.lib.data.user.api.dto.AddUserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 用户接口
 * @author ben
 * @date 2021-08-30 22:34:15 CST
 */
@FeignClient(name = AppConstant.S_DATA_USER)
public interface UserFeign {

	/**
	 * 添加用户
	 * @author ben
	 * @date 2021-08-30 22:33:59 CST
	 * @param dto
	 * @return
	 */
	@PostMapping(value="/user/add")
	public Long addUser(@RequestBody AddUserDTO dto);
	
}
